home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / tcltk.z / tcltk / man / catn / unknown.n < prev    next >
Text File  |  1994-09-20  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. unknown(n)            Tcl Built-In Commands
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NAME
  11.      unknown - Handle attempts to use non-existent commands
  12.  
  13. SYNOPSIS
  14.      unknown _c_m_d_N_a_m_e ?_a_r_g _a_r_g ...?
  15. _________________________________________________________________
  16.  
  17.  
  18. DESCRIPTION
  19.      This command doesn't actually exist as part of Tcl, but  Tcl
  20.      will  invoke  it  if  it does exist.  If the Tcl interpreter
  21.      encounters a command name for which there is not  a  defined
  22.      command,  then  Tcl  checks  for  the existence of a command
  23.      named unknown.  If there is no such command, then the inter-
  24.      preter  returns  an  error.   If the unknown command exists,
  25.      then it is invoked with arguments consisting of  the  fully-
  26.      substituted name and arguments for the original non-existent
  27.      command.  The unknown command  typically  does  things  like
  28.      searching  through  library  directories  for a command pro-
  29.      cedure with the name _c_m_d_N_a_m_e, or expanding abbreviated  com-
  30.      mand  names  to full-length, or automatically executing unk-
  31.      nown commands as sub-processes.   In  some  cases  (such  as
  32.      expanding  abbreviations)  unknown  will change the original
  33.      command slightly and then (re-)execute it.   The  result  of
  34.      the  unknown  command is used as the result for the original
  35.      non-existent command.
  36.  
  37.  
  38. KEYWORDS
  39.      error, non-existent command
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Tcl                                                             1
  64.  
  65.  
  66.  
  67.